<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://unpkg.com/vue@next"></script>
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
</head>
<body>
    <div id="app">
        返回信息: {{ info }}
        <table>

        </table>
    </div>
    <script>
        var stu = { "stu_code": 400102141, "stu_name": "张大三", "stu_gender": 1, "birthday": "2000-11-29", "photo": "400102141.jpg", "weixin_num": "", "college": "河南林职院", "department": "信息系", "profession": "计算机软件", "class_name": "高计软2019-01", "stu_id": "410204200106060801", "phone_num": "13888888888", "gradeNum": "2019" };
        const App = {
            data() {
                    return {
                        info: null
                    }
                },
            mounted () {
                axios
                .post('http://127.0.0.1:8080/student/update_stu_by_code',stu)
                .then(response => (this.info = response))
                .catch(function (error) { // 请求失败处理
                    console.log(error);
                });
            }
            
        }

        Vue.createApp(App).mount('#app')
    </script>
</body>
</html>